package com.kangfu.db.mapper;

import com.kangfu.db.domain.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {

    public Integer insertAddress(Address address);

    public Integer updateAddress(Address address);

    public List<Address> selectAddressList(@Param("userId") int userId, @Param("offset") int offset, @Param("pageSize") int pageSize);

    public Address selectAddressById(@Param("id") int id);

    public Integer delAddress(@Param("id") int id);

    public Address selectDefaultAddress(@Param("userId") int userId);

    public Integer setUnDefaultAddress(@Param("id") int id);
}
